package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysSerialMax;
import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 文件服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteSerialDataService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteSerialDataService
{
    @GetMapping(value = "/serial/max/data")
    public R<SysSerialMax> getSerialValueByParmas(@RequestParam Map paramMap);

    @PostMapping(value = "/serial/max")
    public R<SysSerialMax> saveSerialData(@RequestBody Map paramMap);

    @GetMapping(value = "/serial/max/{typeId}")
    public R<SysSerialMax> saveSerialData(@PathVariable("typeId") int typeId);
}
